#!/usr/bin/make -f

all: build

build:
	python setup.py build

install: build
	sudo python setup.py install
	sudo ln -sf /usr/lib/python2.5/site-packages/cwc/cwc.py /usr/local/bin/cwc
	sudo chmod +x /usr/local/bin/cwc
	mkdir -p ~/.cwc
	cp -Ri doc/webradios.txt ~/.cwc/

uninstall:
	sudo rm -vrf /usr/lib/python2.5/site-packages/cwc
	sudo rm -v /usr/lib/python2.5/site-packages/pycwc*.egg-info

clean:
	rm -vrf build
